@extends('admin.author.layout.layout')
@section('content')
<div class="panel panel-default">
    <div class="panel-heading">
        书评列表
    </div>
    <!-- /.panel-heading -->
    <div class="panel-body">
        <div class="table-responsive">
            @if(session('success'))
            <div class="alert alert-success">
                {{session('success')}}
            </div>    
            @endif
            <table class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>评论书籍</th>
                        <th>评论文章标题</th>
                        <th>评论人</th>
                        <th>评论内容</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($comments as $k=>$v)
                        <tr>
                            <td>{{$v->id}}</td>
                            <td>{{$v->b_name}}</td>
                            <td>{{$v->title}}</td>
                            <td>{{$v->name}}</td>
                            <td>{{$v->com_content}}</td>
                            <td><a href="{{url('/admin/acomment/reply',['id'=>$v->id,'name'=>$v->name,'reply_id'=>$v->publish_id])}}">回复</a>|<a href="{{url('/admin/acomment/recycle',['id'=>$v->id])}}">扔进回收站</a></td>
                            <!-- <td><a href="/admin/acomment/reply?id={{$v->id}}">回复</a>|<a href="">扔进回收站</a></td> -->
                        </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
        <!-- /.table-responsive -->
    </div>
    <!-- /.panel-body -->
</div>
@endsection